package cn.edu.zut.score.service;

import cn.edu.zut.score.core.domain.RestResponse;
import cn.edu.zut.score.core.dto.request.MarkRequest;
import cn.edu.zut.score.core.dto.response.GradeResponse;
import cn.edu.zut.score.core.entity.Grade;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zby
 * @since 2021-06-25
 */
public interface IGradeService extends IService<Grade> {

    RestResponse<List<GradeResponse>> getScoreById(Long replyid, Long studentid);

    RestResponse<List<GradeResponse>> getScoreByReplyId(Long replyid);

    RestResponse<String> mark(MarkRequest markRequest);

    Integer getStudentSumScore(Long replyid, Long studentid, Integer weight);

    RestResponse<List<Double>> analyseScale(Long replyId);

    RestResponse<List<Double>> analyseStudent(Long replyId, Long studentId);

    RestResponse<List<Double>> getAnalyse(Long replyId);
}
